<br /><br /><center>These are the departments currently in the system</center>
<table>
<tr>
<th>id</th>
<th>Department</th>
<th>&nbsp;</th>
</tr>
<?php foreach($this->depts as $dept) : ?>
<tr>
<td><?php echo $this->escape($dept->id);?></td>
<td><?php echo $this->escape($dept->name);?></td>
<td>
<a href="<?php echo $this->url(array('controller'=>'dept',
'action'=>'editdept', 'module'=>'admin', 'id'=>$dept->id));?>">Edit</a>
<a href="<?php echo $this->url(array('controller'=>'dept',
'action'=>'deletedept', 'module'=> 'admin', 'id'=>$dept->id));?>">Delete</a>
</td>
</tr>
<?php endforeach; ?>
</table>